/* Original base styles generated from Bootstrap 3.3.7 and normalize.css */

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

/*!
 * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=b1a7a9799f5a13719dc42620cfa43461)
 * Config saved to config.json and https://gist.github.com/b1a7a9799f5a13719dc42620cfa43461
 */

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

#hail-navbar #survey {
    font-size: 0.875rem;
    text-decoration: underline;
    text-transform: none;
}

@media only screen and (max-width: 1000px) and (min-width: 767px) {
    #hail-navbar #survey {
	text-align: center;
	font-size: 50%;
	max-width: 100px;
    }
}

#hail-navbar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* necessary to prevent font override in docs*/
  line-height: 1.6; /* necessary to prevent font override in docs*/
  padding: 15px 15px;
  margin: 0px;
  background-color: #fff;
}

.sticky {
  position: sticky;
  top: 0px;
  z-index: 999;
}

#hail-navbar #hail-navbar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 50px;
}

#hail-navbar #hail-container-fluid {
  margin: auto;
  display: flex;
  align-items: center;
}

#hail-navbar #hail-menu {
  margin-top: 1px;
  flex-direction: row;
  justify-content: flex-end;
  display: flex;
}

#hail-navbar #hail-navbar-collapse {
  flex-direction: row;
  flex: 1;
  border-color: inherit;
  align-items: center;
}

#hail-navbar a {
  color: #444;
  text-decoration: none;
  /*defeat bootstrap focus background*/
  text-transform: uppercase;
  font-size: 0.75rem;
}

#hail-menu a:hover,
#hail-menu a.active {
  color: #283870;
  border-bottom: 1px solid #283870;
}

#hail-navbar #hail-menu .nav-item {
  padding: 0px 0.875rem 0px 0.875rem;
}

#hail-navbar #hail-menu .nav-item .octicon:hover {
    color: #4f67ff;
}

#hail-navbar #hail-menu .nav-item:last-child {
  padding-right: 0px;
}

#hail-navbar #hail-navbar-collapse .dropdown-menu {
  background-color: #ffffff;
}

/* search  */

input[type="search"] {
  flex: 1;
  margin: 0px .875rem 0px 1.7rem;
  border-radius: 5px;
  outline: none;
  background-color: #efefef;
  padding: 3px 10px 5px 10px;
  display:flex;
  max-width: 100%;
  height: 30px;
  font-size: .875rem;
  font-family: inherit;
}

input[type="search"]:focus, input[type="search"]  {
  border: 1px solid #efefef;
  box-shadow: none;
}

.algolia-autocomplete  input[type="search"] {
  width: 100%;
  margin:0px;
  -webkit-appearance: none;
}

.algolia-autocomplete .algolia-docsearch-suggestion--wrapper {
  display: flex;
}

#search::-webkit-search-cancel-button {
  display: none;
}

.algolia-autocomplete .algolia-docsearch-suggestion--no-results {
  margin: auto;
}

input[type="search"]::-webkit-input-placeholder {
  line-height: 1;
 }

input[type="search"]::placeholder {
  font-size: .825rem;
  padding-top: 3px;
}

.algolia-autocomplete {
  margin: 0px .875rem 0px 1.7rem;
  height: 30px;
  flex:1;
  display: flex!important;
  justify-content: flex-end;
}

.algolia-autocomplete .ds-dropdown-menu {
  max-width: 100%!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 99%;
}

.algolia-autocomplete .algolia-docsearch-suggestion--text, .algolia-autocomplete .algolia-docsearch-suggestion--title {
  text-transform: none;
}

.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
  width: 20%!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--content  {
  width: 80%!important;
}

#hail-navbar.documentation-view  #hail-menu {
  margin-top: -3px;
}

@media only screen and (max-width: 800px) {
  #hail-navbar #hail-menu {
    margin-top: 2.5px;
  }
}

@media (max-width: 767px) {
  .algolia-autocomplete .ds-dropdown-menu {
    min-width: 400px!important;
  }

  #hail-navbar #survey {
      padding: 12px 18px;
      padding-top: 24px;
      display: block;
      text-align: center;
      width: 100vw;
      font-size: 100%;
  }

  // Restore this after we remove the #survey
  // #hail-navbar #hail-navbar-collapse .nav-item:first-child {
  //   padding-top: 24px;
  // }

  #hail-navbar #hail-menu .nav-item {
    padding: 12px 18px;
  }

  .algolia-autocomplete {
    margin-top: 25px;
    display: flex!important;
    justify-content: flex-end;
    margin-left: 15px;
    margin-right: 15px;
  }

  #hail-navbar a {
    font-size: 1rem;
  }

  #hail-navbar #hail-navbar-header {
    width: 100%;
  }
  #hail-navbar #hail-navbar-collapse {
    display: none;
    flex-direction: column;
    width: 100vw;
    position: absolute;
    top: 50px;
    background: #fff;
    height: 100vh;
    left: 0px;
    z-index: 999;
  }

  #hail-navbar #hail-menu {
    margin-top: 0px;
    flex-direction: column;
    position: absolute;
    justify-content: flex-start;
    width: 100vw;
    background: white;
    height: 100vh;
  }

  input[type="search"], input[type="search"]::placeholder {
    font-size: 1rem;
  }
}

#hail-navbar .dropdown-menu > li > a {
  padding: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

#hail-menu a.img-link:hover,
#hail-menu a.img-link.active {
  color: #2a388f;
  border-bottom: none;
}

#hail-navbar .dropdown-menu > li > a:hover,
#hail-navbar .dropdown-menu > li > a:focus {
  color: #262626;
  background-color: #fff;
}

#hail-navbar .dropdown-menu.dropdown-menu-left {
  left: 0;
  right: auto;
}

#hail-navbar .dropdown-header {
  display: block;
  padding: 3px 20px;
  line-height: 1.42857143;
  color: #777777;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #hail-navbar #hail-navbar-collapse {
    display: flex!important;
  }
  #hail-navbar .navbar-right .dropdown-menu {
    left: auto;
    right: 0;
  }
  #hail-navbar .navbar-right .dropdown-menu-left {
    left: 0;
    right: auto;
  }
}

#hail-navbar .nav {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

#hail-navbar .nav > li > a:hover,
#hail-navbar .nav > li > a:focus {
  background-color: inherit;
}

#hail-navbar .dropdown-menu.show {
  padding: 0px;
}

#hail-navbar .navbar {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

#hail-navbar #navbar-collapse {
  overflow-x: visible;
  border-top: 1px solid transparent;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-overflow-scrolling: touch;
}

#hail-navbar .dropdown-menu {
  margin-top: 0;
  border: 0px;
}

#hail-navbar #hail-navbar-collapse.show .navbar-nav > li > .dropdown-menu li {
  margin-left: 0.875rem;
}

@media (min-width: 768px) {
  #hail-navbar .navbar-nav > li > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: auto;
    z-index: 1000;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    text-align: left;
    background-color: inherit;
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px #ddd;
    box-shadow: 0 6px 12px #ddd;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
  }
}

#hail-navbar #hail-container-fluid .navbar-toggler {
  margin: 0px 0px 0px auto;
  background: transparent;
  border: none;
  cursor: pointer;
  cursor: hand;
  padding: 0px; /*to fix bootstrap override in docs*/
}

#hail-navbar #hail-container-fluid .navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px 0px;
  border-radius: 1px;
  border: 1px solid #444;
}

#hail-navbar #hail-container-fluid .navbar-toggler:hover {
  outline: none;
}

#hail-navbar #hail-container-fluid .navbar-toggler:hover .icon-bar,
#hail-navbar #hail-container-fluid .navbar-toggler:focus .icon-bar {
  border-color: #111;
}

#hail-navbar #hail-container-fluid .navbar-toggler .icon-bar {
  background-color: #444;
}

@media (min-width: 768px) {
  #hail-navbar #hail-container-fluid .navbar-toggler {
    display: none;
  }
}
